package de.graffiti.entities;

// Generated 31.08.2009 23:42:26 by Hibernate Tools 3.2.4.GA

import static javax.persistence.GenerationType.IDENTITY;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import org.hibernate.validator.Length;

/**
 * WallitemId generated by hbm2java
 */

@Entity
@NamedQueries({@NamedQuery(name = "Wallitem.findByWallpaper", query = "" + "SELECT wi " + "FROM Wallitem wi  " + "WHERE wi.wallpaperid = :wallpaperid and wi.status = :status " + "ORDER BY wi.creationdate")})
public class Wallitem implements java.io.Serializable
{
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "itmeid", unique = true, nullable = false)
	private int itemid;

	@Column(name = "wallpaperid", nullable = false)
	private int wallpaperid;

	@Column(name = "creationdate", length = 19)
	private Date creationdate;

	@Column(name = "author", length = 50)
	@Length(max = 50)
	private String author;

	@Column(name = "status", length = 1)
	@Length(max = 1)
	private String status;

	@Column(name = "deletiondate", length = 19)
	private Date deletiondate;

	@Column(name = "height")
	private Integer height;

	@Column(name = "width")
	private Integer width;

	@Column(name = "xPos")
	private Integer xpos;

	@Column(name = "ypos")
	private Integer ypos;

	@Column(name = "contentid")
	private Integer contentid;

	public Wallitem()
	{
	}

	public Wallitem(int itemid, int walpaperid)
	{
		this.itemid = itemid;
		this.wallpaperid = walpaperid;
	}

	public Wallitem(int itemid, int wallpaperid, Date creationdate, String author, String status, Date deletiondate, Integer height, Integer width, Integer xpos, Integer ypos, Integer contentid)
	{
		this.itemid = itemid;
		this.wallpaperid = wallpaperid;
		this.creationdate = creationdate;
		this.author = author;
		this.status = status;
		this.deletiondate = deletiondate;
		this.height = height;
		this.width = width;
		this.xpos = xpos;
		this.ypos = ypos;
		this.contentid = contentid;
	}

	public int getItemid()
	{
		return this.itemid;
	}

	public void setItemid(int itemid)
	{
		this.itemid = itemid;
	}

	public int getWallpaperid()
	{
		return this.wallpaperid;
	}

	public void setWallpaperid(int wallpaperid)
	{
		this.wallpaperid = wallpaperid;
	}

	public Date getCreationdate()
	{
		return this.creationdate;
	}

	public void setCreationdate(Date creationdate)
	{
		this.creationdate = creationdate;
	}

	public String getAuthor()
	{
		return this.author;
	}

	public void setAuthor(String author)
	{
		this.author = author;
	}

	public String getStatus()
	{
		return this.status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	public Date getDeletiondate()
	{
		return this.deletiondate;
	}

	public void setDeletiondate(Date deletiondate)
	{
		this.deletiondate = deletiondate;
	}

	public Integer getHeight()
	{
		return this.height;
	}

	public void setHeight(Integer height)
	{
		this.height = height;
	}

	public Integer getWidth()
	{
		return this.width;
	}

	public void setWidth(Integer width)
	{
		this.width = width;
	}

	public Integer getXpos()
	{
		return this.xpos;
	}

	public void setXpos(Integer xpos)
	{
		this.xpos = xpos;
	}

	public Integer getYpos()
	{
		return this.ypos;
	}

	public void setYpos(Integer ypos)
	{
		this.ypos = ypos;
	}

	public Integer getContentid()
	{
		return this.contentid;
	}

	public void setContentid(Integer contentid)
	{
		this.contentid = contentid;
	}

}
